﻿using Newtonsoft.Json;

namespace AutomationCommand
{
    public class wb_data_remote_manage : BasiCommand
    {
        [JsonProperty("optype")]
        public int Optype { get; set; }

        [JsonProperty("api")]
        public string Api { get; set; }

        [JsonProperty("dataclear")]
        public string DataClear { get; set; }

        [JsonProperty("tablename")]
        public string TableName { get; set; }

        public wb_data_remote_manage()
        {
            FunctionType = "wb_data_remote_manage";
            OtherName = "远程数据管理";
            Optype = 0;
            Api = "";
            DataClear = "false";
            TableName = "";
            SuccessJump = -1;
            FailureJump = -1;
        }

        public bool Execute()
        {
            // 在这里编写执行命令的逻辑
            // 返回执行结果
            return true; // 假设此处始终成功
        }
    }
}
